package com.legendshop.openportal.sdk.model.request;

import com.legendshop.openportal.sdk.model.BaseRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

import static com.legendshop.openportal.sdk.model.constants.ApiPathConstants.ADDRESS_PARSE;

/**
 * 智能解析地址
 **/
@Data
@Accessors(chain = true)
public class AddressParseRequest extends BaseRequest {



    @NotBlank(message = "用户的详细地址不能为空")
    @ApiModelProperty(value = "用户的详细地址，包括省市区城镇4级地址和详细的收货地址，也可以包括手机号，收件人姓名")
    private String address;


    @Override
    @ApiModelProperty(hidden = true)
    public String getApiPath() {
        return ADDRESS_PARSE;
    }
}
